Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Mon, 21 Feb 2022 21:00:28 +0000 (21:00 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 21 Feb 2022 21:00:28 +0000 (21:00 +0000)
commit06ee230a97b48ca2d2e5e841c3db8a49019bae12
tree3925fcac93a973580cb3a1f3be816ef157a89775
parente23edb8a91940798de6be81804166d88733ace13
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp